import request from '@/utils/request'

// 查询任务清单列表
export function listJoblist(query) {
  return request({
    url: '/archive/joblist/list',
    method: 'get',
    params: query
  })
}

// 查询任务清单详细
export function getJoblist(id) {
  return request({
    url: '/archive/joblist/' + id,
    method: 'get'
  })
}

// 新增任务清单
export function addJoblist(data) {
  return request({
    url: '/archive/joblist',
    method: 'post',
    data: data
  })
}

// 修改任务清单
export function updateJoblist(data) {
  return request({
    url: '/archive/joblist',
    method: 'put',
    data: data
  })
}

// 删除任务清单
export function delJoblist(id) {
  return request({
    url: '/archive/joblist/' + id,
    method: 'delete'
  })
}
//操作人员
export function getAllOperationUser() {
  return request({
    url: '/system/user/getAllOperationUser',
    method: 'get',
  })
}
export function resetStatus(id) {
  return request({
    url: '/archive/joblist/resetStatus/'+id,
    method: 'put',
  })
}
